public class Text {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(100);
        myArrayList.add(200);
        myArrayList.add(300);
        myArrayList.add(400);
        myArrayList.add(500);
        myArrayList.display();
        myArrayList.add(5,666);
        myArrayList.display();
        myArrayList.remove(200);
        myArrayList.display();
        System.out.println(myArrayList.get(4));
        myArrayList.set(4,999);
        myArrayList.display();

    }
}
